﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Store.Master" Inherits="System.Web.Mvc.ViewPage<YourStore.Models.Category>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	CreateCategory
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>CreateCategory</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

         <div class="create">
       <dl>
        <dt>Category Name:</dt>
        <dd> <%: Html.TextBox("Name") %></dd>
         <dt>Description :</dt>
         <dd> <%: Html.TextBox("Description") %></dd>
          <dt>&nbsp;</dt>
          <dd><input type="submit" value="Create"  class="sub"/></dd>
          <dt>  <%: Html.ActionLink("Back to List", "Cateogry")%></dt>
          <dd>&nbsp;</dd>
           </dl>
            </div>
      <% } %>
</asp:Content>

